package creators;

import java.util.Scanner;

import simulation.Model;

/**
 * creator for a ViscosityForce object.
 * @author Schwartz & Roy
 *
 */
public class ViscosityCreator extends Creator {

    /**
     * creates the object.
     * @param model is the model
     * @param line is the input
     */
    @Override
    public void create(Model model, Scanner line) {
        double v = line.nextDouble();
        model.getEnvironment().setViscosity(v);
    }
}
